﻿using System.Data;

namespace CoreEx.Database.Client
{
    /// <summary>
    /// Provides additional information about an <see cref="IDbConnection"/>.    
    /// </summary>
    public interface IDbConnectionInfo
    {
        /// <summary>
        /// Gets or sets the name of the connection
        /// </summary>
        string Name { get; set; }

        /// <summary>
        /// Gets or sets the invariant name of the provider.
        /// </summary>        
        string ProviderName { get; set; }

        /// <summary>
        /// Gets or sets the <see cref="IDbTransaction"/> that an <see cref="IDbConnection"/> is currently using.       
        /// </summary>
        IDbTransaction DbTransaction { get; set; }
    }
}